var food_ops = {
    init: function () {
        this.eventBind();
    },
    eventBind: function () {
        $('.search').click(function (ev) {
            ev.preventDefault();
            var status_i = $('select[name=status]');
            var cate_i = $('select[name=cat_id]');
            var kword_i = $('input[name=mix_kw]');

            var status = status_i.val();
            var cate = cate_i.val();
            var kword = kword_i.val();

            var params = {
                'status': status,
                'cate_id': cate,
                'kword': kword
            };

            window.location.href = common_ops.buildUrl('/food/index', params);
        });
    }
};

$(function () {
    food_ops.init();
});